﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace linkouqs.Gamekit {

    public class CharacterStateAttack : CharacterState {

        CharacterAbilityAttack m_Attack;

        public override void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex) {
            base.OnStateEnter(animator, stateInfo, layerIndex);
            m_Attack = animator.GetComponent<CharacterAbilityAttack>();
        }

        public override void OnStateExit(Animator animator, AnimatorStateInfo stateInfo, int layerIndex) {
            m_Attack.StopAction();
            m_Attack = null;
            base.OnStateExit(animator, stateInfo, layerIndex);
        }
    }

}
